<template>
  <el-drawer
    :visible="drawer"
    :show-close="false"
    @close="handleClose"
    size="35.5%"
    class="detailDrawer"
  >
    <div class="drawerWrapper">
      <div v-if="activeKey == '2'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="支付信息" name="2"></el-tab-pane>
          <el-tab-pane label="退款信息" name="3"></el-tab-pane>
          <el-tab-pane label="分润信息" name="4"></el-tab-pane>
        </el-tabs>
        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">所属商户</div>
              <div class="desc">
                {{ info.memberName ? info.memberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商户订单号</div>
              <div class="desc">
                {{ info.merchantOrderNo ? info.merchantOrderNo : "-" }}
              </div>
              <div
                v-if="info.merchantOrderNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.merchantOrderNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">云尘付流水号</div>
              <div class="desc">
                {{ info.innerOrderNo ? info.innerOrderNo : "-" }}
              </div>
              <div
                v-if="info.innerOrderNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.innerOrderNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">商品名称</div>
              <div class="desc">
                {{ info.subject ? info.subject : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商品描述</div>
              <div class="desc">
                {{ info.body ? info.body : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">备注</div>
              <div class="desc">
                {{ info.description ? info.description : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款方</div>
              <div class="desc">
                {{ info.userName ? info.userName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">订单金额/元</div>
              <div class="desc">
                {{ info.fmtOriginalAmount ? info.fmtOriginalAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">优惠金额/元</div>
              <div class="desc">
                {{ info.fmtDiscountAmount ? info.fmtDiscountAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">应付金额/元</div>
              <div class="desc">
                {{ info.fmtActualAmount ? info.fmtActualAmount : "-" }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">支付情况</div>
              <div class="desc">
                {{ info.businessOrderPayResponse.pay ? "有" : "无" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">已支付总金额</div>
              <div class="desc">
                {{
                  info.businessOrderPayResponse.fmtTotalPayAmount
                    ? info.businessOrderPayResponse.fmtTotalPayAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item-table">
              <el-table
                :data="info.businessOrderPayResponse.chargeResponseList"
              >
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="渠道流水号"
                  prop="thirdOrderNo"
                  :width="
                    this.$flexColumnWidth(
                      'thirdOrderNo',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.thirdOrderNo ? scope.row.thirdOrderNo : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="支付金额/元"
                  prop="fmtActualAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtActualAmount',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtActualAmount
                          ? scope.row.fmtActualAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="支付渠道"
                  prop="channelName"
                  :width="
                    this.$flexColumnWidth(
                      'channelName',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.channelName ? scope.row.channelName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="渠道手续费/元"
                  prop="fmtFeeAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtFeeAmount',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtFeeAmount ? scope.row.fmtFeeAmount : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="支付状态"
                  prop="statusName"
                  :width="
                    this.$flexColumnWidth(
                      'statusName',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.statusName ? scope.row.statusName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="支付时间"
                  prop="payTime"
                  :width="
                    this.$flexColumnWidth(
                      'payTime',
                      info.businessOrderPayResponse.chargeResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.payTime ? scope.row.payTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '3'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">退款情况</div>
              <div class="desc">
                {{ info.businessOrderRefundResponse.refund ? "有" : "无" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">退款总金额</div>
              <div class="desc">
                {{
                  info.businessOrderRefundResponse.fmtTotalRefundAmount
                    ? info.businessOrderRefundResponse.fmtTotalRefundAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item-table">
              <el-table :data="info.businessOrderRefundResponse.refundList">
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <!-- <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款订单号"
                  prop="refundNo"
                  :width="
                    this.$flexColumnWidth(
                      'refundNo',
                      info.businessRefundRes.businessRefundListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundNo ? scope.row.refundNo : "-" }}
                    </div>
                  </template>
                </el-table-column> -->
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款流水号"
                  prop="innerRefundNo"
                  :width="
                    this.$flexColumnWidth(
                      'innerRefundNo',
                      info.businessOrderRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.innerRefundNo ? scope.row.innerRefundNo : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款金额/元"
                  prop="refundAmount"
                  :width="
                    this.$flexColumnWidth(
                      'refundAmount',
                      info.businessOrderRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.refundAmount ? scope.row.refundAmount : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="返还手续费/元"
                  prop="refundFee"
                  :width="
                    this.$flexColumnWidth(
                      'refundFee',
                      info.businessOrderRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundFee ? scope.row.refundFee : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款状态"
                  prop="refundStatus"
                  :width="
                    this.$flexColumnWidth(
                      'refundStatusName',
                      info.businessOrderRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.refundStatusName
                          ? scope.row.refundStatusName
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款时间"
                  prop="refundTime"
                  :width="
                    this.$flexColumnWidth(
                      'refundTime',
                      info.businessOrderRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundTime ? scope.row.refundTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '4'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">分润情况</div>
              <div class="desc">
                {{ info.royaltyResponse.royalty ? "有" : "无" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">分润总金额/元</div>
              <div class="desc">
                {{
                  info.royaltyResponse.fmtTotalRoyaltyAmount
                    ? "￥" + info.royaltyResponse.fmtTotalRoyaltyAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item-table">
              <el-table :data="info.royaltyResponse.royaltyResponseList">
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润方名称"
                  prop="inUserName"
                  :width="
                    this.$flexColumnWidth(
                      'inUserName',
                      info.royaltyResponse.royaltyResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.inUserName ? scope.row.inUserName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润金额/元"
                  prop="fmtTotalRoyaltyAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtTotalRoyaltyAmount',
                      info.royaltyResponse.royaltyResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtTotalRoyaltyAmount
                          ? scope.row.fmtTotalRoyaltyAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润类型"
                  prop="royaltyTypeName"
                  :width="
                    this.$flexColumnWidth(
                      'royaltyTypeName',
                      info.royaltyResponse.royaltyResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.royaltyTypeName
                          ? scope.row.royaltyTypeName
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <!-- <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="结算渠道"
                  prop="refundTime"
                  :width="
                    this.$flexColumnWidth(
                      'channelName',
                      info.royaltyResponse.royaltyResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundTime ? scope.row.refundTime : "-" }}
                    </div>
                  </template>
                </el-table-column> -->
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="结算状态"
                  prop="statusName"
                  :width="
                    this.$flexColumnWidth(
                      'statusName',
                      info.royaltyResponse.royaltyResponseList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.statusName ? scope.row.statusName : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
            <!-- <li class="item">
              <div class="tit">分润发起方</div>
              <div class="desc">
                {{
                  info.businessSettleRes.memberName
                    ? info.businessSettleRes.memberName
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">分润状态</div>
              <div class="desc">
                {{
                  info.businessSettleRes.settleStatus
                    ? info.businessSettleRes.settleStatus
                    : "-"
                }}
              </div>
            </li>
            <li class="item-table">
              <el-table
                :data="info.businessSettleRes.businessSettleListResList"
              >
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润接收方"
                  prop="memberName"
                  :width="
                    this.$flexColumnWidth(
                      'memberName',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.memberName ? scope.row.memberName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润方接收方ID"
                  prop="memberNo"
                  :width="
                    this.$flexColumnWidth(
                      'memberNo',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.memberNo ? scope.row.memberNo : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润金额/元"
                  prop="fmtSettleAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtSettleAmount',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtSettleAmount
                          ? scope.row.fmtSettleAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="结算类型"
                  prop="fmtSettleAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtSettleAmount',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.settleType ? scope.row.settleType : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="结算状态"
                  prop="settleFinish"
                  :width="
                    this.$flexColumnWidth(
                      'settleFinish',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.settleFinish == 0
                          ? "未结算"
                          : scope.row.settleFinish == 1
                          ? "结算成功"
                          : scope.row.settleFinish == 2
                          ? "处理中"
                          : "结算失败"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分润完成时间"
                  prop="finishTime"
                  :width="
                    this.$flexColumnWidth(
                      'finishTime',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.finishTime ? scope.row.finishTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li> -->
          </ul>
        </div>
      </div>
      <div v-if="activeKey == '3'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="支付信息" name="2"></el-tab-pane>
          <el-tab-pane label="退款信息" name="3"></el-tab-pane>
          <!-- <el-tab-pane label="分账信息" name="4"></el-tab-pane> -->
        </el-tabs>

        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">所属商户</div>
              <div class="desc">
                {{ info.memberName ? info.memberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商户订单号</div>
              <div class="desc">
                {{ info.merchantChargeNo ? info.merchantChargeNo : "-" }}
              </div>
              <div
                v-if="info.merchantChargeNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.merchantChargeNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">云尘付流水号</div>
              <div class="desc">
                {{ info.innerChargeNo ? info.innerChargeNo : "-" }}
              </div>
              <div
                v-if="info.innerChargeNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.innerChargeNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">关联业务订单号</div>
              <div class="desc">
                {{ info.orderId ? info.orderId : "-" }}
              </div>
              <div
                v-if="info.orderId"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.orderId)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">商品名称</div>
              <div class="desc">
                {{ info.subject ? info.subject : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商品描述</div>
              <div class="desc">
                {{ info.body ? info.body : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">备注</div>
              <div class="desc">
                {{ info.description ? info.description : "-" }}
              </div>
            </li>
            <!-- <li class="item">
              <div class="tit">付款方</div>
              <div class="desc">
                {{ info.payMemberName ? info.payMemberName : "-" }}
              </div>
            </li> -->
            <li class="item">
              <div class="tit">订单金额/元</div>
              <div class="desc">
                {{ info.fmtOriginalAmount ? info.fmtOriginalAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">优惠金额/元</div>
              <div class="desc">
                {{ info.fmtGiveAmount ? info.fmtGiveAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">实付金额/元</div>
              <div class="desc">
                {{ info.fmtActualAmount ? info.fmtActualAmount : "-" }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">支付状态</div>
              <div class="desc">
                {{
                  info.chargePayResponse.statusName
                    ? info.chargePayResponse.statusName
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">支付时间</div>
              <div class="desc">
                {{
                  info.chargePayResponse.payTime
                    ? info.chargePayResponse.payTime
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">渠道流水号</div>
              <div class="desc">
                {{
                  info.chargePayResponse.thirdOrderNo
                    ? info.chargePayResponse.thirdOrderNo
                    : "-"
                }}
              </div>
              <div
                v-if="info.chargePayResponse.thirdOrderNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.chargePayResponse.thirdOrderNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">支付渠道</div>
              <div class="desc">
                {{
                  info.chargePayResponse.channelName
                    ? info.chargePayResponse.channelName
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">支付金额/元</div>
              <div class="desc">
                {{
                  info.chargePayResponse.fmtActualAmount
                    ? info.chargePayResponse.fmtActualAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">渠道手续费/元</div>
              <div class="desc">
                {{
                  info.chargePayResponse.fmtFeeAmount
                    ? info.chargePayResponse.fmtFeeAmount
                    : "-"
                }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '3'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">退款情况</div>
              <div class="desc">
                {{ info.chargeRefundResponse.refund ? "有" : "无" }}
              </div>
            </li>
            <li class="item-table">
              <el-table :data="info.chargeRefundResponse.refundList">
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款订单号"
                  prop="refund_no"
                  :width="
                    this.$flexColumnWidth(
                      'refund_no',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refund_no ? scope.row.refund_no : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款流水号"
                  prop="innerRefundNo"
                  :width="
                    this.$flexColumnWidth(
                      'innerRefundNo',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.innerRefundNo ? scope.row.innerRefundNo : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款金额/元"
                  prop="refundAmount"
                  :width="
                    this.$flexColumnWidth(
                      'refundAmount',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.refundAmount ? scope.row.refundAmount : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="返还手续费/元"
                  prop="refundFee"
                  :width="
                    this.$flexColumnWidth(
                      'refundFee',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundFee ? scope.row.refundFee : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款状态"
                  prop="refundStatusName"
                  :width="
                    this.$flexColumnWidth(
                      'refundStatusName',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.refundStatusName
                          ? scope.row.refundStatusName
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款时间"
                  prop="refundTime"
                  :width="
                    this.$flexColumnWidth(
                      'refundTime',
                      info.chargeRefundResponse.refundList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundTime ? scope.row.refundTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div>
        <!-- <div v-if="activeName == '4'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">分账情况</div>
              <div class="desc">
                {{
                  info.businessSettleRes.settleMode
                    ? info.businessSettleRes.settleMode
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">分账发起方</div>
              <div class="desc">
                {{
                  info.businessSettleRes.memberName
                    ? info.businessSettleRes.memberName
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">分账总金额/元</div>
              <div class="desc">
                {{
                  info.businessSettleRes.payoutTotalAmount
                    ? "￥" + info.businessSettleRes.payoutTotalAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item-table">
              <el-table
                :data="info.businessSettleRes.businessSettleListResList"
              >
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分账方"
                  prop="memberName"
                  :width="
                    this.$flexColumnWidth(
                      'memberName',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.memberName ? scope.row.memberName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分账方ID"
                  prop="memberNo"
                  :width="
                    this.$flexColumnWidth(
                      'memberNo',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.memberNo ? scope.row.memberNo : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分账金额/元"
                  prop="fmtSettleAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtSettleAmount',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtSettleAmount
                          ? scope.row.fmtSettleAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="结算状态"
                  prop="settleFinish"
                  :width="
                    this.$flexColumnWidth(
                      'settleFinish',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.settleFinish == 0
                          ? "未结算"
                          : scope.row.settleFinish == 1
                          ? "结算成功"
                          : scope.row.settleFinish == 2
                          ? "处理中"
                          : "结算失败"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="分账完成时间"
                  prop="finishTime"
                  :width="
                    this.$flexColumnWidth(
                      'finishTime',
                      info.businessSettleRes.businessSettleListResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.finishTime ? scope.row.finishTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div> -->
      </div>
      <div v-if="activeKey == '4'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="退款信息" name="2"></el-tab-pane>
        </el-tabs>
        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商户订单号</div>
              <div class="desc">
                {{ info.payformNo ? info.payformNo : "-" }}
              </div>
              <div
                v-if="info.payformNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.payformNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">所属商户</div>
              <div class="desc">
                {{ info.memberName ? info.memberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">云尘付流水号</div>
              <div class="desc">
                {{ info.innerPayformNo ? info.innerPayformNo : "-" }}
              </div>
              <div
                v-if="info.innerPayformNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.innerPayformNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">商品名称</div>
              <div class="desc">
                {{ info.subject ? info.subject : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商品描述</div>
              <div class="desc">
                {{ info.subjectDesc ? info.subjectDesc : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">备注</div>
              <div class="desc">
                {{ info.description ? info.description : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款方</div>
              <div class="desc">
                {{ info.payMemberName ? info.payMemberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">订单金额/元</div>
              <div class="desc">
                {{ info.fmtOriginalAmount ? info.fmtOriginalAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">优惠金额/元</div>
              <div class="desc">
                {{ info.fmtDiscountAmount ? info.fmtDiscountAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">支付金额/元</div>
              <div class="desc">
                {{ info.fmtActualAmount ? info.fmtActualAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">支付渠道</div>
              <div class="desc">
                {{ info.payformChannel ? info.payformChannel : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">渠道手续费/元</div>
              <div class="desc">
                {{ info.fmtFeeAmount ? info.fmtFeeAmount : "-" }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">退款订单号</div>
              <div class="desc">
                {{
                  info.businessRefundListResList.length != 0
                    ? info.businessRefundListResList[0].refundNo
                    : "-"
                }}
              </div>
              <div
                v-if="info.businessRefundListResList.length != 0"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.businessRefundListResList[0].refundNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">退款流水号</div>
              <div class="desc">
                {{
                  info.businessRefundListResList.length != 0
                    ? info.businessRefundListResList[0].innerRefundNo
                    : "-"
                }}
              </div>
              <div
                v-if="info.businessRefundListResList.length != 0"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="
                    copyAppId(info.businessRefundListResList[0].innerRefundNo)
                  "
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">退款金额/元</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].fmtRefundAmount
                    ? info.businessRefundListResList[0].fmtRefundAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">返还手续费/元</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].fmtRefundFeeAmount
                    ? info.businessRefundListResList[0].fmtRefundFeeAmount
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">退款发起人</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].createUserName
                    ? info.businessRefundListResList[0].createUserName
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">退款理由</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].reason
                    ? info.businessRefundListResList[0].reason
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">退款状态</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].refundStatus
                    ? info.businessRefundListResList[0].refundStatus
                    : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">退款时间</div>
              <div class="desc">
                {{
                  info.businessRefundListResList[0].refundTime
                    ? info.businessRefundListResList[0].refundTime
                    : "-"
                }}
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div v-if="activeKey == '5'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="领取信息" name="2"></el-tab-pane>
          <el-tab-pane label="退款信息" name="3"></el-tab-pane>
        </el-tabs>
        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商户订单号</div>
              <div class="desc">
                {{ info.redNo ? info.redNo : "-" }}
              </div>
              <div
                v-if="info.redNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.redNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">商户号</div>
              <div class="desc">
                {{ info.memberId ? info.memberId : "-" }}
              </div>
              <div
                v-if="info.memberId"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.memberId)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">APP ID</div>
              <div class="desc">
                {{ info.appId ? info.appId : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">红包类型</div>
              <div class="desc">
                普通红包
              </div>
            </li>
            <li class="item">
              <div class="tit">红包个数</div>
              <div class="desc">
                {{
                  info.num ? info.num : "-"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">红包金额</div>
              <div class="desc">
                {{ info.fmtAmount ? info.fmtAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">活动名称</div>
              <div class="desc">
                {{
                  info.subject
                    ? info.subject
                    : "-"
                }}
              </div>
            </li>
            <!-- <li class="item">
              <div class="tit">结果</div>
              <div class="desc">
                成功 {{ info.successCount ? info.successCount : "0" }} 失败
                {{ info.failCount ? info.failCount : "0" }} 处理中
                {{ info.waitCount ? info.waitCount : "0" }}
              </div>
            </li> -->
            <li class="item">
              <div class="tit">活动描述</div>
              <div class="desc">
                {{ info.description ? info.description : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">红包状态</div>
              <div class="desc">
                {{ setPayStatus(info.status) }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">用户</div>
              <div class="desc">
                {{ info.receiveUser ? info.receiveUser : "-" }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '3'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">是否退款</div>
              <div class="desc">
                {{
                info.status == "rfunding" || info.status == "refund"
                  ? "是"
                  : "否"
                }}
              </div>
            </li>
          </ul>
        </div>
        <!-- <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item-table">
              <el-table :data="info.payformRefundResList">
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="云尘付流水号"
                  prop="innerPayformNo"
                  :width="
                    this.$flexColumnWidth(
                      'innerPayformNo',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.innerPayformNo
                          ? scope.row.innerPayformNo
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款订单号"
                  prop="refundNo"
                  :width="
                    this.$flexColumnWidth('refundNo', info.payformRefundResList)
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundNo ? scope.row.refundNo : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款流水号"
                  prop="innerRefundNo"
                  :width="
                    this.$flexColumnWidth(
                      'innerRefundNo',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.innerRefundNo ? scope.row.innerRefundNo : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="商户名称"
                  prop="memberName"
                  :width="
                    this.$flexColumnWidth(
                      'memberName',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.memberName ? scope.row.memberName : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款金额/元"
                  prop="fmtRefundAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtRefundAmount',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtRefundAmount
                          ? scope.row.fmtRefundAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="返还手续费/元"
                  prop="fmtRefundFeeAmount"
                  :width="
                    this.$flexColumnWidth(
                      'fmtRefundFeeAmount',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.fmtRefundFeeAmount
                          ? scope.row.fmtRefundFeeAmount
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款渠道"
                  prop="payformChannel"
                  :width="
                    this.$flexColumnWidth(
                      'payformChannel',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.payformChannel
                          ? scope.row.payformChannel
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款状态"
                  prop="refundStatus"
                  :width="
                    this.$flexColumnWidth(
                      'refundStatus',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.refundStatus ? scope.row.refundStatus : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="退款时间"
                  prop="refundTime"
                  :width="
                    this.$flexColumnWidth(
                      'refundTime',
                      info.payformRefundResList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.refundTime ? scope.row.refundTime : "-" }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div> -->
      </div>
      <div v-if="activeKey == '6'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="收款方信息" name="2"></el-tab-pane>
        </el-tabs>
        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">商户订单号</div>
              <div class="desc">
                {{ info.transferNo ? info.transferNo : "-" }}
              </div>
              <div
                v-if="info.transferNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.transferNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">云尘付流水号</div>
              <div class="desc">
                {{ info.orderNo ? info.orderNo : "-" }}
              </div>
              <div
                v-if="info.orderNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.orderNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">付款方</div>
              <div class="desc">
                {{ info.memberName ? info.memberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款金额/元</div>
              <div class="desc">
                {{ info.fmtTransAmt ? info.fmtTransAmt : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款渠道</div>
              <div class="desc">
                {{
                  info.payformChannel == "ada"
                    ? "汇付"
                    : info.payformChannel == "wechat"
                    ? "微信"
                    : "支付宝"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款时间</div>
              <div class="desc">
                {{ info.gmtModified ? info.gmtModified : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款状态</div>
              <div class="desc">
                {{ info.status ? setAuditStatus(info.status).str : "-" }}
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">收款方</div>
              <div class="desc">
                {{ info.inMemberId ? info.inMemberId : "-" }}
              </div>
            </li>
            <!-- <li class="item">
              <div class="tit">
                {{
                  info.payformChannel == "ada"
                    ? "用户ID"
                    : info.payformChannel == "wechat"
                    ? "OpenID"
                    : "支付宝账号"
                }}
              </div>
              <div class="desc">
                {{ info.inMemberId ? info.inMemberId : "-" }}
              </div>
            </li> -->
            <li class="item">
              <div class="tit">转账名称</div>
              <div class="desc">
                {{ info.goodsTitle ? info.goodsTitle : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">备注</div>
              <div class="desc">
                {{ info.remark ? info.remark : "-" }}
              </div>
            </li>
          </ul>
        </div>
      </div>
      <div v-if="activeKey == '7'" class="wrap">
        <el-tabs v-model="activeName" ref="tabs" @tab-click="handleClick">
          <el-tab-pane label="基本信息" name="1"></el-tab-pane>
          <el-tab-pane label="收款方信息" name="2"></el-tab-pane>
        </el-tabs>
        <div v-if="activeName == '1'" class="tabContnet">
          <ul class="list">
            <li class="item">
              <div class="tit">创建时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">批次号</div>
              <div class="desc">
                {{ info.merBatchNo ? info.merBatchNo : "-" }}
              </div>
              <div
                v-if="info.merBatchNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.merBatchNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">云尘付转账批次号</div>
              <div class="desc">
                {{ info.batchNo ? info.batchNo : "-" }}
              </div>
              <div
                v-if="info.batchNo"
                style="margin-left: 32px; color: #03bfc6; cursor: pointer"
              >
                <i
                  class="el-icon-document-copy"
                  @click="copyAppId(info.batchNo)"
                ></i>
              </div>
            </li>
            <li class="item">
              <div class="tit">付款方</div>
              <div class="desc">
                {{ info.memberName ? info.memberName : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款总金额/元</div>
              <div class="desc">
                {{ info.fmtTotalAmount ? info.fmtTotalAmount : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款总笔数</div>
              <div class="desc">
                {{ info.totalNum ? info.totalNum : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款渠道</div>
              <div class="desc">
                {{
                  info.channel == "ada"
                    ? "汇付"
                    : info.channel == "wechat"
                    ? "微信"
                    : "支付宝"
                }}
              </div>
            </li>
            <li class="item">
              <div class="tit">付款时间</div>
              <div class="desc">
                {{ info.gmtCreated ? info.gmtCreated : "-" }}
              </div>
            </li>
            <li class="item">
              <div class="tit">结果</div>
              <div class="desc">
                成功 {{ info.successCount }} 失败 {{ info.failCount }} 处理中
                {{ info.waitCount }}
                <!-- {{ info.status ? setAuditStatus1(info.status).str : "-" }} -->
              </div>
            </li>
          </ul>
        </div>
        <div v-if="activeName == '2'" class="tabContnet">
          <ul class="list">
            <li class="item-table">
              <el-table :data="info.settleBalancePayList">
                <template slot="empty">
                  <el-empty
                    :image="require('@/assets/imgs/middleWork/k1.png')"
                    :image-size="80"
                    description="暂无相关数据"
                  ></el-empty>
                </template>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="收款方"
                  prop="inAccountName"
                  :width="
                    this.$flexColumnWidth(
                      'inAccountName',
                      info.settleBalancePayList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.inAccountName ? scope.row.inAccountName : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  :label="
                    info.channel == 'ada'
                      ? '用户ID'
                      : info.channel == 'wechat'
                      ? 'OpenID'
                      : '支付宝账号'
                  "
                  prop="inMemberNo"
                  :width="
                    this.$flexColumnWidth(
                      'inMemberNo',
                      info.settleBalancePayList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.inMemberNo ? scope.row.inMemberNo : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="金额/元"
                  prop="fmtTransAmt"
                  :width="
                    this.$flexColumnWidth(
                      'fmtTransAmt',
                      info.settleBalancePayList
                    )
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.fmtTransAmt ? scope.row.fmtTransAmt : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <!-- <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="转账名称"
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.payformChannel
                          ? scope.row.payformChannel
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column> -->
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="备注"
                  prop="remark"
                  width="150"
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{ scope.row.remark ? scope.row.remark : "-" }}
                    </div>
                  </template>
                </el-table-column>
                <el-table-column
                  show-overflow-tooltip
                  align="center"
                  label="付款状态"
                  prop="status"
                  :width="
                    this.$flexColumnWidth('status', info.settleBalancePayList)
                  "
                >
                  <template slot-scope="scope">
                    <div
                      style="
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                      "
                    >
                      {{
                        scope.row.status
                          ? setAuditStatus2(scope.row.status).str
                          : "-"
                      }}
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </el-drawer>
</template>

<script>
export default {
  props: {
    drawer: {
      type: Boolean,
    },
    info: {
      type: Object,
      default: () => ({}),
    },
    activeKey: {
      type: String,
      default: "2",
    },
    width: {
      type: String,
      default: "140px",
    },
  },
  components: {},
  data() {
    return {
      // autoWidth:'35%',
      resetKey: false,
      activeName: "1",
    };
  },
  methods: {
    setPayStatus(val) {
      let str = "";
      switch (val) {
        case "sending":
          str = "发放中";
          break;
        case "send":
          str = "发放待领取";
          break;
        case "failed":
          str = "发放失败";
          break;
        case "received":
          str = "已领取";
          break;
        case "rfunding":
          str = "退款中";
          break;
        case "refund":
          str = "已退款";
          break;
      }
      return str;
    },
    setAuditStatus(val) {
      let color = "";
      let str = "";
      switch (val) {
        case "processing":
          str = "处理中";
          color = "pedding";
          break;
        case "success":
          str = "处理成功";
          color = "succeed";
          break;
        case "fail":
          str = "处理失败";
          color = "failed";
          break;
        default:
          break;
      }
      return {
        str,
        color,
      };
    },
    setAuditStatus1(val) {
      let color = "";
      let str = "";
      switch (val) {
        case "applying":
          str = "申请中";
          color = "pedding";
          break;
        case "applied":
          str = "申请成功";
          color = "succeed";
          break;
        case "applyFail":
          str = "申请失败";
          color = "failed";
          break;
        case "all_fail":
          str = "失败";
          color = "failed";
          break;
        case "all_sucess":
          str = "成功";
          color = "succeed";
          break;
        case "part_sucess":
          str = "部分成功";
          color = "succeed";
          break;
      }
      return {
        str,
        color,
      };
    },
    setAuditStatus2(val) {
      let color = "";
      let str = "";
      switch (val) {
        case "processing":
          str = "处理中";
          color = "pedding";
          break;
        case "success":
          str = "处理成功";
          color = "succeed";
          break;
        case "fail":
          str = "处理失败";
          color = "failed";
          break;
        default:
          break;
      }
      return {
        str,
        color,
      };
    },
    handleClose() {
      this.$emit("update:drawer", false);
      this.activeName = "1";
    },
    handleClick() {
      this.resetActivePosition(this.$refs.tabs.$el);
    },
    resetActivePosition($el) {
      this.$nextTick(() => {
        const activeEl = $el.querySelector(".el-tabs__item.is-active");
        const lineEl = $el.querySelector(".el-tabs__active-bar");
        const style = getComputedStyle(activeEl);
        const pl = style.paddingLeft.match(/\d+/)[0] * 1;
        const pr = style.paddingRight.match(/\d+/)[0] * 1;
        const w = style.width.match(/\d+/)[0] * 1;
        lineEl.style.transform =
          "translateX(" + (activeEl.offsetLeft + pl) + "px)";
        lineEl.style.width = w - pl - pr + "px";
      });
    },
    copyAppId(value) {
      const input = document.createElement("input"); // 创建input对象
      input.value = value; // 设置复制内容
      document.body.appendChild(input); // 添加临时实例
      input.select(); // 选择实例内容
      document.execCommand("Copy"); // 执行复制
      document.body.removeChild(input); // 删除临时实例
      this.$message.success("复制成功！");
    },
  },
};
</script>

<style lang="scss" scoped>
.drawerWrapper {
  padding: 0 50px;
}

.tabContnet {
  margin-top: 30px;
  .item {
    display: flex;
    align-items: flex-start;
    min-height: 20px;
    // line-height: 40px;
    margin-bottom: 20px;
    div {
      // display: inline-block;
      &.tit {
        min-width: 118px;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #869daa;
        margin-right: 26px;
      }
      &.desc {
        display: flex;
        // justify-content: space-around;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #1d1c1c;
        span {
          display: inline-block;
          margin-right: 10px;
          &.hidText {
            display: inline-block;
            width: 230px;
            overflow: hidden; //溢出隐藏
            white-space: nowrap; //禁止换行
            text-overflow: ellipsis; //...
          }
          &.highCol {
            color: #03bfc6;
          }
        }
      }
    }
  }
  .item-table {
    margin-top: 17px;
    :deep(.el-table .el-table__header-wrapper .el-table__cell) {
      height: 34px;
    }
    :deep(.el-table .el-table__body-wrapper .el-table__cell) {
      height: 34px;
    }
  }
}

:deep(.el-tabs__item) {
  width: 72px !important;
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  margin-right: 40px;
}
:deep(.el-tabs__active-bar) {
  top: unset;
  bottom: 0;
  height: 1px;
}
</style>
